package com.tobeface.sns.interfaces.util;

import org.apache.shiro.SecurityUtils;

import com.tobeface.sns.domain.User;
import com.tobeface.sns.interfaces.constants.SubjectAttrConstants;

/**
 * @author Linxiaosheng
 */
public class UserUtil {

	public static User getCurrentLoginUser() {
		return (User) SecurityUtils.getSubject().getSession().getAttribute(SubjectAttrConstants.USER_AWARE_CONSTANT);
	}
	
}
